package com.tms.goodsmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.goodsmanagement.mapper.GoodsmanagementMapper;
import com.tms.goodsmanagement.domain.Goodsmanagement;
import com.tms.goodsmanagement.service.IGoodsmanagementService;

/**
 * 货物管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class GoodsmanagementServiceImpl implements IGoodsmanagementService 
{
    @Autowired
    private GoodsmanagementMapper goodsmanagementMapper;

    /**
     * 查询货物管理
     * 
     * @param id 货物管理主键
     * @return 货物管理
     */
    @Override
    public Goodsmanagement selectGoodsmanagementById(Integer id)
    {
        return goodsmanagementMapper.selectGoodsmanagementById(id);
    }

    /**
     * 查询货物管理列表
     * 
     * @param goodsmanagement 货物管理
     * @return 货物管理
     */
    @Override
    public List<Goodsmanagement> selectGoodsmanagementList(Goodsmanagement goodsmanagement)
    {
        return goodsmanagementMapper.selectGoodsmanagementList(goodsmanagement);
    }

    /**
     * 新增货物管理
     * 
     * @param goodsmanagement 货物管理
     * @return 结果
     */
    @Override
    public int insertGoodsmanagement(Goodsmanagement goodsmanagement)
    {
        return goodsmanagementMapper.insertGoodsmanagement(goodsmanagement);
    }

    /**
     * 修改货物管理
     * 
     * @param goodsmanagement 货物管理
     * @return 结果
     */
    @Override
    public int updateGoodsmanagement(Goodsmanagement goodsmanagement)
    {
        return goodsmanagementMapper.updateGoodsmanagement(goodsmanagement);
    }

    /**
     * 批量删除货物管理
     * 
     * @param ids 需要删除的货物管理主键
     * @return 结果
     */
    @Override
    public int deleteGoodsmanagementByIds(Integer[] ids)
    {
        return goodsmanagementMapper.deleteGoodsmanagementByIds(ids);
    }

    /**
     * 删除货物管理信息
     * 
     * @param id 货物管理主键
     * @return 结果
     */
    @Override
    public int deleteGoodsmanagementById(Integer id)
    {
        return goodsmanagementMapper.deleteGoodsmanagementById(id);
    }
}
